import { AbsLocalFileParseSvc } from "./absparsesvc"
import { SVGParser } from "./svg/svgparser";
class SVGFileParseSvc extends AbsLocalFileParseSvc {
    constructor() {
        super();
    }

    parse(fileData, mainctl) {
        let svc = new SVGParser();
        let svgRet = svc.parse(fileData);
        if (svgRet) {
            let graphInfoList = svgRet.graphs;
            let symbolResult = svgRet.symbolDefs;
            mainctl.m_pConfigINTF.config("disLineWidth",1);
            mainctl.clearData();
            mainctl.initSymbol2Mem(symbolResult.units, symbolResult.symbols);
            mainctl.initGraphObjFromInfoList(graphInfoList);
        }
    }
}

export { SVGFileParseSvc }